package com.mb.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 公共配置
 *
 * @author michael.li
 * @create 2018-03-24 下午3:08
 **/
@Component
@ConfigurationProperties(prefix = "api")
public class CommonConfig {

    //图片域名
    @Value("${imgDomain}")
    private String imgDomain;

    //图片根地址
    @Value("${imgRootPath}")
    private String imgRootPath;


    public String getImgDomain() {
        return imgDomain;
    }

    public void setImgDomain(String imgDomain) {
        this.imgDomain = imgDomain;
    }

    public String getImgRootPath() {
        return imgRootPath;
    }

    public void setImgRootPath(String imgRootPath) {
        this.imgRootPath = imgRootPath;
    }
}
